﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeToGo.Formatters
{
    public class DayDurationFormatter : DurationFormatterBase
    {
        public DayDurationFormatter(string formatString)
            : base(formatString)
        { }

        public override string Name
        {
            get { return "Day formatter"; }
        }

        protected override string FormatDuration(TimeSpan duration)
        {
            return string.Format(FormatString, duration.TotalDays);
        }
    }
}
